## newspred.R
# From A First Course in Machine Learning, Chapter 5.
# Francois-Xavier Briol, 04/06/16 [f-x.briol@warwick.ac.uk]
# Naive Bayesian classifier on the 20 newsgroup data
rm(list=ls(all=TRUE))

## Load the data
setwd("~/data/newsgroup") ## Might need to change the path here






